﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChooseUmp.aspx.cs" Inherits="Appraisal.Web.ZB.ChooseUmp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>考评系统</title>
		<meta name="developer" content="GZ">
		<LINK rel="stylesheet" href="../CSS/Default/Style.css"></LINK>
			<SCRIPT language="JavaScript" src="../JS/prototype-1.4.0.js"></SCRIPT>
			<SCRIPT language="JavaScript" src="../JS/App.js"></SCRIPT>
			<SCRIPT language="JavaScript" src="../JS/AppTsg.js"></SCRIPT>
			<script language="javascript">
	<!--
	//-------------------------------------------------------------
	// Select all the checkboxes (Hotmail style)
	// Note: Please note this will select all the check boxes on the
	// form.
	//-------------------------------------------------------------
	function SelectAllCheckboxes(spanChk){
	
	// Added as ASPX uses SPAN for checkbox 
	var xState=spanChk.checked;
	var theBox=spanChk;
	
	// Old code for VS 2002 / .NET framework 1.0 code
	//-----------------------------------------------
	// In .NET 1.0 ASP.NET was using SPAN tag with
	// CheckBox control. 
	//
	//var oItem = spanChk.children;
	//var theBox=oItem.item(0)
	//xState=theBox.checked;	
	//-----------------------------------------------
	
		elm=theBox.form.elements;
		for(i=0;i<elm.length;i++)
		{
			if(elm[i].type=="checkbox" && elm[i].id!=theBox.id)
			{
				//elm[i].click();
				if(elm[i].checked!=xState)
				elm[i].click();
				//elm[i].checked=xState;
			}
		}
	}

	//-------------------------------------------------------------
	//----Select highlish rows when the checkboxes are selected
	//
	// Note: The colors are hardcoded, however you can use 
	//       RegisterClientScript blocks methods to use Grid's
	//       ItemTemplates and SelectTemplates colors.
	//		 for ex: grdEmployees.ItemStyle.BackColor OR
	//				 grdEmployees.SelectedItemStyle.BackColor
	//-------------------------------------------------------------
	function HighlightRow(chkB)	{
	
	// Old code for VS 2002 / .NET framework 1.0 code
	//-----------------------------------------------
	// In .NET 1.0 ASP.NET was using SPAN tag with
	// CheckBox control. 
	//var oItem = chkB.children;
	//xState=oItem.item(0).checked;
	var xState=chkB.checked;
		
	if(xState)
		{chkB.parentElement.parentElement.style.backgroundColor='#FFCC66';  // grdEmployees.SelectedItemStyle.BackColor
		 chkB.parentElement.parentElement.style.color='#663399'; // grdEmployees.SelectedItemStyle.ForeColor
		}else 
		{chkB.parentElement.parentElement.style.backgroundColor='white'; //grdEmployees.ItemStyle.BackColor
		 chkB.parentElement.parentElement.style.color='black'; //grdEmployees.ItemStyle.ForeColor
		}
	}
	// -->
			</script>
			
	</HEAD>
	<body topMargin="1" MS_POSITIONING="FlowLayout">
		<form id="Form1" method="post" runat="server">
			<TABLE class="ms-toolbar" cellSpacing="0" cellPadding="0">
				<TR>
					<TD width="2"><IMG alt="" src="../../Images/Default/blank.gif" width="2" height="1"></TD>
					<TD class="ms-toolbar">
						<TABLE border="0" cellSpacing="0" cellPadding="1">
							<TR>
								<TD class="ms-toolbar" noWrap><asp:imagebutton id="btnImgNew" runat="server" ImageUrl="../Images/Default/saveitem.gif"></asp:imagebutton></TD>
								<TD noWrap><asp:linkbutton id="lbtnSave" runat="server" CssClass="ms-toolbar" 
                                        onclick="lbtnSave_Click"> 保存结果</asp:linkbutton></TD>
								<TD class="ms-separator">&nbsp;|&nbsp;</TD>
								<TD class="ms-toolbar" noWrap><asp:imagebutton id="Imagebutton6" runat="server" ImageUrl="../Images/Default/undo.gif"></asp:imagebutton></TD>
								<TD noWrap><asp:linkbutton id="lbtnBack" runat="server" CssClass="ms-toolbar" 
                                        onclick="lbtnBack_Click"> 返回</asp:linkbutton></TD>
							</TR>
						</TABLE>
					</TD>
					<TD width="100%"><IMG alt="" src="../../Images/Default/blank.gif" width="1" height="22"></TD>
				</TR>
			</TABLE>
			<TABLE border="0" cellSpacing="0" cellPadding="0" width="100%">
				<TBODY>
					<TR>
						<TD>
							<asp:Panel ID="panelObject" Visible="False" Runat="server">
								<TABLE id="Table4" class="ms-summarycustombody" border="0" cellPadding="2" width="100%">
									<TR>
										<TH class="ms-formlabel" bgColor="#e1ecfc" vAlign="top" colSpan="8" noWrap align="left">
											项目信息</TH></TR>
									<TR>
										<TH class="ms-formlabel" vAlign="top" width="5%" noWrap align="left">
											<NOBR>项目名称</NOBR></TH>
										<TD class="ms-formbody" width="10%">
											<asp:label id="labSubjectName" runat="server" CssClass="ms-input"></asp:label></TD>
										<TH class="ms-formlabel" vAlign="top" width="5%" noWrap align="left">
											评<nobr>
                                                分表名称</nobr>
                                        </TH>
										<TD class="ms-formbody" width="30%">
											<asp:label id="labKpName" runat="server" CssClass="ms-input"></asp:label></TD>
										<TH class="ms-formlabel" vAlign="top" width="5%" noWrap align="left">
											&nbsp;</TH>
										<TD class="ms-formbody" width="20%">
											&nbsp;</TD>
										<TH class="ms-formlabel" vAlign="top" width="5%" noWrap align="left">
											&nbsp;</TH>
										<TD class="ms-formbody" width="20%">
											&nbsp;</TD>
									</TR>
								</TABLE>
							</asp:Panel>
						</TD>
					</TR>
					<tr>
						<td>
							<TABLE style="WIDTH: 100%" id="Table3" class="ms-summarycustombody" border="0" cellPadding="2">
								<TR>
									<TH class="ms-formlabel" vAlign="top" noWrap align="left" bgColor="#e1ecfc" colSpan="4">
										条件检索</TH></TR>
								<TR>
									<TD class="ms-vb" width="10%">专<NOBR>家姓名</NOBR>
									</TD>
									<TD class="ms-vb">
                                        <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                                    </TD>
									<TD class="ms-vb" width="10%">专<NOBR>家类别</NOBR>
									</TD>
									<TD class="ms-vb"><asp:dropdownlist id="dplType" runat="server" CssClass="ms-input"></asp:dropdownlist></TD>
								</TR>
								<TR>
									<TD class="ms-vb" colspan="4">
                                        <asp:linkbutton id="lbtnMakeChoose" runat="server" 
                                            CssClass="ms-input" onclick="lbtnMakeChoose_Click">按检索条件进行标记</asp:linkbutton></TD>
								</TR>
							</TABLE>
						</td>
					</tr>
					<TR>
						<TD class="ms-partline"><IMG alt="" src="../../Images/Default/blank.gif" width="1" height="2"></TD>
					</TR>
					<TR>
						<TD height="10"></TD>
					</TR>
					<TR>
						<TD vAlign="top">
							<TABLE id="Table3" border="0" cellSpacing="0" cellPadding="0" width="100%">
								<TR class="ms-WPHeader">
									<TD>
										<DIV class="ms-WPTitle"><IMG class="ms-HoverCellInActive" border="0" align="absMiddle" src="../Images/Default/select_next.gif"><NOBR><SPAN>待选择专家列表</SPAN></NOBR>&nbsp;</DIV>
									</TD>
									<TD width="150" align="right"><IMG class="ms-HoverCellInActive" border="0" align="absMiddle" src="../Images/Default/Menu1.gif">
									</TD>
								</TR>
							</TABLE>
						</TD>
					</TR>
					<tr>
						<td>
							<div style="WIDTH: 100%; DISPLAY: inline; HEIGHT: 240px; OVERFLOW: auto; CURSOR: default"
								id="divPending" align="left">
                                <asp:datagrid id="dg" runat="server" 
                                    FooterStyle-CssClass="datagrid_row" AllowSorting="True"
									CellSpacing="3" GridLines="None" BorderWidth="0px" AutoGenerateColumns="False" Width="100%">
									<FooterStyle CssClass="datagrid_row"></FooterStyle>
									<SelectedItemStyle Font-Bold="True" ForeColor="#663399" BackColor="#FFCC66"></SelectedItemStyle>
									<ItemStyle CssClass="datagrid_row"></ItemStyle>
									<HeaderStyle CssClass="FixedTitleRow" BackColor="#E0E0E0"></HeaderStyle>
									<Columns>
										<asp:TemplateColumn HeaderText="选择">
											<HeaderStyle Width="50px" />
											<ItemStyle CssClass="datagrid_item"></ItemStyle>
											<ItemTemplate>
												<asp:CheckBox id="chkSelectPending" onclick="javascript:HighlightRow(this);" runat="server" AutoPostBack="false"></asp:CheckBox>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:BoundColumn DataField="ID" HeaderText="专家ID" visible="false"></asp:BoundColumn>
										<asp:BoundColumn DataField="Name" HeaderText="姓名">
											<ItemStyle CssClass="datagrid_item"></ItemStyle>
										</asp:BoundColumn>
									</Columns>
								</asp:datagrid></div>
						</td>
					</tr>
					<TR>
						<TD class="ms-partline"><IMG alt="" src="../../Images/Default/blank.gif" width="1" height="2"></TD>
					</TR>
					<TR>
						<TD height="20"></TD>
					</TR>
					<TR>
						<TD class="ms-partline"><IMG alt="" src="../../Images/Default/blank.gif" width="1" height="2"></TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE class="ms-toolbar" cellSpacing="0" cellPadding="0">
				<TR>
					<TD width="2"><IMG alt="" src="../../Images/Default/blank.gif" width="2" height="1"></TD>
					<TD class="ms-toolbar">
						<TABLE border="0" cellSpacing="0" cellPadding="1">
							<TR>
								<TD class="ms-toolbar" noWrap><asp:imagebutton id="Imagebutton1" runat="server" ImageUrl="../Images/Default/saveitem.gif"></asp:imagebutton></TD>
								<TD noWrap><asp:linkbutton id="btnSaveBottom" runat="server" CssClass="ms-toolbar" 
                                        onclick="lbtnSave_Click"> 保存结果</asp:linkbutton></TD>
								<TD class="ms-separator">&nbsp;|&nbsp;</TD>
								<TD class="ms-toolbar" noWrap><asp:imagebutton id="Imagebutton2" runat="server" ImageUrl="../Images/Default/undo.gif"></asp:imagebutton></TD>
								<TD noWrap><asp:linkbutton id="lbtnBackBottom" runat="server" CssClass="ms-toolbar" 
                                        onclick="lbtnBack_Click"> 返回</asp:linkbutton></TD>
							</TR>
						</TABLE>
					</TD>
					<TD width="100%"><IMG alt="" src="../../Images/Default/blank.gif" width="1" height="22"></TD>
				</TR>
			</TABLE>
		</form>
		</NOBR>
		</TR></TBODY></TABLE></TR></TBODY></TABLE></FORM>
	</body>
</HTML>
